/*
 * @Author: NJ_1098 xiabaoxin
 * @Date: 2025-02-11 16:06:31
 * @LastEditors: NJ_1098 xiabaoxin
 * @LastEditTime: 2025-02-12 16:10:11
 * @Description: 用户处理错误列表
 */
const UserError = {
  userFormatterError: {
    code: "20001",
    msg: "新增用户参数错误",
    data: null,
  },
  userExitedError: {
    code: "20002",
    msg: "用户已存在",
    data: null,
  },
  userTokenExpiredError: {
    code: "20003",
    msg: "用户token过期",
    data: null,
  },
  userTokenInvalidError: {
    code: "20004",
    msg: "用户token无效",
    data: null,
  },
  userLoginError: {
    code: "20005",
    msg: "登录信息错误",
    data: null,
  },
  userNoExitedError: {
    code: "20006",
    msg: "用户不存在",
    data: null,
  },
  getOpenidError: {
    code: null,
    msg: "",
    data: null,
  },
  registerLackError: {
    code: "20007",
    msg: "注册信息不全",
    data: null,
  },
  codeError: {
    code: "20008",
    msg: "验证码错误",
    data: null,
  },
};

module.exports = UserError;
